Fix libjasper test
authorMatthias Clasen <mclasen@redhat.com>
Sat, 22 May 2010 04:29:58 +0000 (00:29 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 22 May 2010 04:29:58 +0000 (00:29 -0400)
This was reported in bug 551322.

configure.ac

index d8a20eb49366d8837e6c2a8fb9220d72d20d43c0..a99e7d2e348b93418eab7dc400fb9780376c778e 100644 (file)
@@ -943,7 +943,7 @@ dnl Test for libpng
 
 dnl Test for libjasper
   if test x$with_libjasper = xyes && test -z "$LIBJASPER"; then
-    AC_CHECK_LIB(jasper, jas_init, LIBJASPER=-ljasper, [], -ljpeg)
+    AC_CHECK_LIB(jasper, jas_init, LIBJASPER=-ljasper, [], -ljpeg -lm)
   fi
 
   if test x$with_libjasper = xyes && test -z "$LIBJASPER"; then